-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat!: Add omitempty
tag check to custom linter
#3780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
453a2be
to
e8329a2
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3780 +/- ##
=======================================
Coverage 91.50% 91.50%
=======================================
Files 190 190
Lines 17007 17019 +12
=======================================
+ Hits 15562 15574 +12
Misses 1257 1257
Partials 188 188 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@zyfy29 - This PR is going to be extremely tricky. I'm looking just at the very first example in github/actions_hosted_runners.go, and am noticing that in lines 109-128, the validation function goes to great lengths to ensure that required fields are not missing, which makes me think that the correct fix for this struct is to actually REMOVE the In fact, the more that I think about this, the more I remember a large number of bug reports in this repo have involved either the inclusion or lack of inclusion of the I'm seriously thinking (now that I've seen the wide-sweeping changes for this linter) that we may not want this linter at all because each and every case is so closely tied to how it behaves and interacts with the respective GitHub endpoints. I'm concerned that this one PR is going to cause a great deal of breakages. Thoughts? |
Yes, it may break a lot of methods. The violations are far more than what I thought before since I just made a incomplete search. Let me think carefully tomorrow. |
BREAKING CHANGE: This changes some optional struct fields with pointer types.
Fixes: #3775.
Rename the custom linter
sliceofpointers
togogithub
, and expand it withomitempty
tag check.